<?php

namespace common\components;
use backend\modules\home\models\MhConfig;

class Config
{
	public static function getValue($key){
		$model = new MhConfig();
		$res = $model->find()->where(['key' => $key])->asArray()->one();
		if($res){
			return $res['value'];
		}else{
			return array(
				'title' => '',
				'value' => '',
				'remark' => '',
				'key' => '',
			);
		}
	} 	
}